/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers.process;

import models.GiangDayDAO;
import controllers.entity.GiangDay;
import java.util.List;
/**
 *
 * @author HoaDuyen
 */
public class GiangDayProcess {
    private static GiangDayDAO giangDayDAO = new GiangDayDAO();
    
    public List<GiangDay> getAllGiangDay(int macanbo) { 
        return giangDayDAO.getAllGiangDayByMaCanBo(macanbo);
     }
    
    public static boolean insertGiangDay(GiangDay X){
        return giangDayDAO.InsertGiangDay(X);
    }
    
    public static boolean updateGiangDay(GiangDay X){
        return giangDayDAO.UpdateGiangDay(X);
    }
    
    public boolean deleteGiangDayByMaLopHoc(String MaLopHoc){
        return giangDayDAO.DeleteGiangDayByMaLopHoc(MaLopHoc);
    }
}
